package com.ha.system.intention.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ha.system.intention.mapper.HaCustomerIntentionMapper;
import com.ha.system.intention.domain.HaCustomerIntention;
import com.ha.system.intention.service.IHaCustomerIntentionService;
import com.ha.common.core.text.Convert;

/**
 * 客户意向信息Service业务层处理
 * 
 * @author admin
 * @date 2021-03-16
 */
@Service
public class HaCustomerIntentionServiceImpl implements IHaCustomerIntentionService 
{
    @Autowired
    private HaCustomerIntentionMapper haCustomerIntentionMapper;

    /**
     * 查询客户意向信息
     * 
     * @param id 客户意向信息ID
     * @return 客户意向信息
     */
    @Override
    public HaCustomerIntention selectHaCustomerIntentionById(Long id)
    {
        return haCustomerIntentionMapper.selectHaCustomerIntentionById(id);
    }

    /**
     * 查询客户意向信息列表
     * 
     * @param haCustomerIntention 客户意向信息
     * @return 客户意向信息
     */
    @Override
    public List<HaCustomerIntention> selectHaCustomerIntentionList(HaCustomerIntention haCustomerIntention)
    {
        return haCustomerIntentionMapper.selectHaCustomerIntentionList(haCustomerIntention);
    }

    /**
     * 新增客户意向信息
     * 
     * @param haCustomerIntention 客户意向信息
     * @return 结果
     */
    @Override
    public int insertHaCustomerIntention(HaCustomerIntention haCustomerIntention)
    {
        return haCustomerIntentionMapper.insertHaCustomerIntention(haCustomerIntention);
    }

    /**
     * 修改客户意向信息
     * 
     * @param haCustomerIntention 客户意向信息
     * @return 结果
     */
    @Override
    public int updateHaCustomerIntention(HaCustomerIntention haCustomerIntention)
    {
        return haCustomerIntentionMapper.updateHaCustomerIntention(haCustomerIntention);
    }

    /**
     * 删除客户意向信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteHaCustomerIntentionByIds(String ids)
    {
        return haCustomerIntentionMapper.deleteHaCustomerIntentionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除客户意向信息信息
     * 
     * @param id 客户意向信息ID
     * @return 结果
     */
    @Override
    public int deleteHaCustomerIntentionById(Long id)
    {
        return haCustomerIntentionMapper.deleteHaCustomerIntentionById(id);
    }
}
